package com.liuxvru.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.liuxvru.common.annotation.Excel;
import com.liuxvru.common.core.domain.BaseEntity;

/**
 * 里程碑与工作项关联对象 pro_milestone_work
 *
 * @author liuxvru
 * @date 2025-04-17
 */
@Data
@TableName(value = "pro_milestone_work")
public class MilestoneWork extends BaseEntity implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 里程碑与工作项关联ID */
    @TableId(value = "milestone_work_item_id", type = IdType.AUTO)
    private Long milestoneWorkItemId;

    /** 关联的里程碑ID */
    @Excel(name = "关联的里程碑ID")
    @TableField(value = "milestone_id")
    private Long milestoneId;

    /** 关联的工作项ID */
    @Excel(name = "关联的工作项ID")
    @TableField(value = "work_item_id")
    private Long workItemId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "updated_at")
    private Date updatedAt;


}
